﻿#ifndef IMAGESAVEMANAGER_H
#define IMAGESAVEMANAGER_H

#include <QObject>
#include <QPushButton>
#include <QLineEdit>
#include "ImageSaveWorker.h"

class ImageSaveManager : public QObject
{
    Q_OBJECT
public:
    explicit ImageSaveManager(QString folder, QObject *parent = nullptr);
    ImageSaveWorker* getSaveWorker(){return mSaveWorker;}
signals:
    void sigSavePathChanged(QString path);
private:
    void initImageSaveWorker();
    void initWgtSavePath();
public:
    //存图路径选择
    QWidget* wgtSavePath;
    QPushButton* pbtnSelectFolder;
    QLineEdit* ledtPath;
private:
    ImageSaveWorker* mSaveWorker;
    QThread* mSaveWorkerThr;
};

#endif // IMAGESAVEMANAGER_H
